import Layout from '../layout/DefaultLayout.vue'
const home = () => import('../views/Home.vue');

const constantRoutes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    redirect: '/home/index',
    component: Layout,
    children: [
      {
        path: 'index',
        name: 'home',
        component: home,
        meta: {
          title: '首页',
          icon: 'home',
          keepAlive: true
        }
      }
    ]
  }
]

export default constantRoutes
